package com.bsoft.gol.hcs.specialist.entity;

import javax.persistence.*;
import java.util.Objects;

/**
 * @program: Myproject
 * @description:
 * @author: zangsf
 * @create: 2022-11-30 14:21
 **/
@Entity
@Table(name = "form_property")
public class FormProperty {
    private Integer formPropertyId;
    private String formPropertyName;

    @Id
    @Column(name = "form_property_id")
    public Integer getFormPropertyId() {
        return formPropertyId;
    }

    public void setFormPropertyId(Integer formPropertyId) {
        this.formPropertyId = formPropertyId;
    }

    @Basic
    @Column(name = "form_property_name")
    public String getFormPropertyName() {
        return formPropertyName;
    }

    public void setFormPropertyName(String formPropertyName) {
        this.formPropertyName = formPropertyName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FormProperty that = (FormProperty) o;
        return Objects.equals(formPropertyId, that.formPropertyId) &&
                Objects.equals(formPropertyName, that.formPropertyName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(formPropertyId, formPropertyName);
    }
}
